import { USER_INFO, LOGIN_INFO, TOKEN } from "./constant";
export const getToken = () => {
    return uni.getStorageSync(TOKEN) || ''
}

export const setToken = (token) => {
    uni.setStorageSync(TOKEN, token)
}

export const removeToken = () => {
    uni.removeStorageSync(TOKEN)
}


export const getUserInfo = () => {
    return uni.getStorageSync(USER_INFO)
}

export const setUserInfo = (userInfo) => {
    uni.setStorageSync(USER_INFO, userInfo)
}

export const removeUserInfo = () => {
    uni.removeStorageSync(USER_INFO)
}


